package com.ctalk.wxapi.controller;
import com.ctalk.base.domain.Notice;
import com.ctalk.base.service.IBannersService;
import com.ctalk.base.service.INoticeService;
import com.ctalk.common.core.domain.AjaxResult;
import com.ctalk.system.domain.SysNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 微信小程序获取通知公告接口
 *
 * @author 王欢
 * @date 2025-08-04
 */
@RestController
@RequestMapping("/wxapi")
public class WxNoticeController {

    @Autowired
    INoticeService noticeService;
    @GetMapping("/loadNotice")
    public AjaxResult loadNotice(){
        List<Notice> notices = noticeService.selectUseNotice();
        return AjaxResult.success(notices);
    }
}
